package com.spring_mysql_redis.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("sp_likes")
public class UserLikes extends Model<UserLikes> implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("点赞信息ID")
    private Integer id;

    @ApiModelProperty("点赞动态id")
    private Integer dynamicId;

    @ApiModelProperty("点赞人ID")
    private Integer userId;

    @ApiModelProperty("点赞时间")
    private Date createTime;

    @ApiModelProperty("$column.comment")
    private Date updateTime;

    @ApiModelProperty("0 取消 1 点赞")
    private Integer state;

}
